<#assign ctx="${rc.contextPath}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>
		<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				background-image: url('${ctx}/images/seach_4.gif');
			}
		</style>
		<link href="${ctx}/css/common.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="${ctx}/js/jquery-1.4.4.min.js"></script>
		<style>
			a:link{color:#F08334;	text-decoration: none;}
		</style>
	</head>

	<body>
		<table width="90%" height=100% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height=25 id=location ><div align="left"><img src="${ctx}/images/location_arrow.gif" width="8" height="11" align="absmiddle"> 您的位置：购房/租房&gt;&gt; 查询退房信息&gt;&gt; 查询结果列表</div></td>
    </tr>
</table>
<div align="left">  
                <input name="Submit42232" type="button" class="input-button" value="返 回" onClick="location.href='${ctx}/return/gototuifangchaxun.htm'">              
              </div>
            <table width="250%" border="0" cellpadding="0" cellspacing="0" id="list"  bgcolor="#FFFFFF">
                <tr>  
				  <TH align="center" width="80"> 操作 </TH>   
				  <TH align="center" width="80"> 购买类型 </TH>   
				      <TH align="center" width="100"> 退房信息审批情况 </TH>            
                  <TH align="center" width="80"> 姓名 </TH>
				  <TH align="center" width="200"> 身份证号 </TH>
				  
				<TH align="center" width="50"> 配偶姓名 </TH>
				  <TH align="center" width="200"> 配偶身份证号 </TH>
					   <TH align="center" width="100">产权管理单位</TH>
				   <TH align="center" width="100">房位置</TH>
				    <TH align="center" width="100">小区名称</TH>
				    <TH align="center" width="30">楼号</TH>
					<TH align="center" width="50">总层数</TH>
					 <TH align="center" width="30">单元</TH>
				   <TH align="center" width="30">房号</TH>
				   <TH align="center" width="50">建筑面积</TH>
				    <TH align="center" width="50">测绘面积</TH>
					<TH align="center" width="50">性质</TH>
				   <TH align="center" width="50">所在楼层</TH>
					 <TH align="center" width="50">朝向户型</TH>
					 <TH align="center" width="50">产权比例</TH> 
					  <TH align="center" width="50">是否成套</TH>
				  
				  <TH align="center" width="100"> 公积金账号 </TH>
				  <TH align="center" width="50"> 户籍号 </TH>
				  <TH align="center" width="100"> 现任行政职务 </TH> 
				  <TH align="center" width="50"> 行政级别 </TH>
				  <TH align="center" width="100"> 现聘专业职称 </TH>
				  <TH align="center" width="50">  职称级别</TH> 
                  <TH align="center" width="50"> 退房价格 </TH>
				  <TH align="center" width="50"> 退房金额 </TH>
                  <TH align="center" width="50"> 综合管理费 </TH>
				 <TH align="center" width="50"> 退房押金 </TH> 
				  <TH align="center" width="50"> 退未婚押金 </TH>
			   <TH align="center" width="100">配偶公积金账号 </TH>
				   <TH align="center" width="100">配偶现任行政职务 </TH> 
				  <TH align="center" width="100"> 配偶行政级别 </TH>
				  <TH align="center" width="100"> 配偶现聘专业职称 </TH>
				  <TH align="center" width="100"> 配偶职称级别</TH> 
                  </tr>
                  <#if page.elements??>
                  <#list page.elements as tuifang>
                <tr id="${tuifang.return_id!""}">
                <TD align="center">
                <#if tuifang.check_status??>
                  	<#if tuifang.check_status == "0">
                <a href="${ctx}/return/gotoedit/${tuifang.return_id!""}.htm" style="color:#F08334;	text-decoration: none;">修改</a>
				</#if>
                  	</#if>	
					<a href="#" onclick="deletetuifang('${tuifang.return_id!""}');" style="color:#F08334;	text-decoration: none;">删除</a></TD>
                  <TD align="center">
                  	<#if tuifang.getRecordType() == "0">
                  			租房记录
                  		<#elseif tuifang.getRecordType() == "1">
                  			购房记录
                  	</#if>
                  </TD>
                  <TD align="center">
                  	<#if tuifang.check_status??>
                  	<#if tuifang.check_status == "0">
                  			未审批
                  		<#elseif tuifang.check_status == "1">
                  			未通过
                  		<#elseif tuifang.check_status == "9">
                  			已入库
                  	</#if>
                  	</#if>
                  </TD>
                  <TD align="center">${tuifang.return_name!""}</TD>
				  <TD align="center">${tuifang.id_card!""}</TD>
                  <TD align="center">${tuifang.mate_name!""}</TD>
                  <TD align="center">${tuifang.mate_card!""}</TD>
				  <TD align="center">${tuifang.group_name!""}</TD>
				  <TD align="center">${tuifang.build.location!""}</TD>
                  <TD align="center">${tuifang.build.house_estate!""}</TD>
                  <TD align="center">${tuifang.build.build_no!""}</TD>
                  <TD align="center">${tuifang.build.layer_count!""}</TD>
				  <TD align="center">${tuifang.room.room_unit!""}</TD>
				  <TD align="center">${tuifang.room.room_no!""}</TD>
				  <TD align="center">${tuifang.build.build_areas!""}</TD>
                  <TD align="center">${tuifang.build.test_areas!""}</TD>
                  <TD align="center">${tuifang.room.room_type!""}
                  	<#if tuifang.room.room_type??>
                  		<#if tuifang.room.room_type == "1">
                  		经济使用房
                  			<#elseif tuifang.room.room_type == "2">
                  			租赁房
                  			<#elseif tuifang.room.room_type == "3">
                  			商品房
                  			<#elseif tuifang.room.room_type == "4">
                  			房改房
                  		</#if>
                  	</#if>
                  </TD>
				  <TD align="center">${tuifang.room.layer!""}</TD>
				  <TD align="center">${tuifang.room.face!""}</TD>
                  <TD align="center">${tuifang.room.cqbl!""}</TD>
                  <TD align="center">
                  	<#if tuifang.room.sfct??>
                  		<#if tuifang.room.sfct == "1">
                  		是
                  		<#elseif tuifang.room.sfct == "0">
                  			否
                  		</#if>
                  	</#if>
                  </TD>
                  <#if tuifang.getRecordType() == "0">
                  			<TD align="center">${tuifang.rent.fund}</TD>
                  			<TD align="center">${tuifang.rent.house_hold}</TD>
                  			<TD align="center">${tuifang.rent.position}</TD>
                  			<TD align="center">${tuifang.rent.position_level}</TD>
                  			<TD align="center">${tuifang.rent.rank}</TD>
                  			<TD align="center">${tuifang.rent.rank_level}</TD>
                  			<TD align="center">${tuifang.price}</TD>
                  			<TD align="center">${tuifang.tfje}</TD>
                  			<TD align="center">${tuifang.zhglf}</TD>
                  			<TD align="center">${tuifang.tfyj}</TD>
                  			<TD align="center">${tuifang.twhyj}</TD>
                  			<TD align="center">${tuifang.rent.mate_fund}</TD>
                  			<TD align="center">${tuifang.rent.mate_position}</TD>
                  			<TD align="center">${tuifang.rent.mate_positionlevel}</TD>
                  			<TD align="center">${tuifang.rent.mate_rank}</TD>
                  			<TD align="center">${tuifang.rent.mate_ranklevel}</TD>
                  		<#elseif tuifang.getRecordType() == "1">
                  			<TD align="center">${tuifang.buy.fund}</TD>
                  			<TD align="center">${tuifang.buy.house_hold}</TD>
                  			<TD align="center">${tuifang.buy.position}</TD>
                  			<TD align="center">${tuifang.buy.position_level}</TD>
                  			<TD align="center">${tuifang.buy.rank}</TD>
                  			<TD align="center">${tuifang.buy.rank_level}</TD>
                  			<TD align="center">${tuifang.price}</TD>
                  			<TD align="center">${tuifang.tfje}</TD>
                  			<TD align="center">${tuifang.zhglf}</TD>
                  			<TD align="center">${tuifang.tfyj}</TD>
                  			<TD align="center">${tuifang.twhyj}</TD>
                  			<TD align="center">${tuifang.buy.mate_fund}</TD>
                  			<TD align="center">${tuifang.buy.mate_position}</TD>
                  			<TD align="center">${tuifang.buy.mate_positionlevel}</TD>
                  			<TD align="center">${tuifang.buy.mate_rank}</TD>
                  			<TD align="center">${tuifang.buy.mate_ranklevel}</TD>
                  	</#if>
                  </tr>
                  </#list></#if>
                
              </table>





          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td id="page"><div align="right">
              	<#if page.elements??>
              	<#if page.getTotalPage() != 0>
                    <@ui.pager page=page action="${ctx}/return/tuifangchaxun.htm">
                        <input type="hidden" name="group_id" value="${dto.group_id!""}">
                        <input type="hidden" name="build_id" value="${dto.build_id!""}">
                        <input type="hidden" name="room_id" value="${dto.room_id!""}">
                        <input type="hidden" name="check_status" value="${dto.check_status!""}">
                        <input type="hidden" name="return_name" value="${dto.return_name}">
                        <input type="hidden" name="id_card" value="${dto.id_card}">
                        <input type="hidden" name="comp_name" value="${dto.comp_name}">
                    </@ui.pager>
                  </#if>
                  </#if>
              </div></td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>　</td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="25" id="operation">                  <div align="right">  
                <input name="Submit42232" type="button" class="input-button" value="返 回" onClick="location.href='${ctx}/return/gototuifangchaxun.htm'">              
              </div></td>
            </tr>
          </table>
          
          <form method="post" action="${ctx}/return/tuifangchaxun.htm" id="tuifangchaxun">
          <input type="hidden" id="_hidden_pageNo_" name="pageNo" value="${page.getPageNumber()}">
        <input type="hidden" id="_hidden_page_size_" name="pageSize" value="20">
          <input type="hidden" name="group_id" value="${dto.group_id!""}">
            <input type="hidden" name="build_id" value="${dto.build_id!""}">
            <input type="hidden" name="room_id" value="${dto.room_id!""}">
            <input type="hidden" name="check_status" value="${dto.check_status!""}">
            <input type="hidden" name="return_name" value="${dto.return_name}">
            <input type="hidden" name="id_card" value="${dto.id_card}">
            <input type="hidden" name="comp_name" value="${dto.comp_name}">
            </form>
	</body>
	
	<script>
		function deletetuifang(id) {
			if (confirm('确定要删除这条记录吗？')) {
			    var url = "${ctx}/return/deletetuifang/" + id + ".htm"
				$.ajax({
				  type: "POST",
				  url: url,
				   success: function(msg){
					   	if (msg == '0') {
					   		alert("删除失败，请联系管理员！");
					   	} else if (msg == '1') {
					   		alert("删除成功！");
				   			$('#tuifangchaxun').submit();
					   	}
				   }
	
				});
			}
		}
	</script>
</html>